package org.jasig.cas;

import org.jasig.services.persondir.IPersonAttributes;
import org.jasig.services.persondir.support.AttributeNamedPersonImpl;
import org.jasig.services.persondir.support.StubPersonAttributeDao;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/5/24/024.
 */
public class AccoutAttributeDao extends StubPersonAttributeDao {

    @Override
    public IPersonAttributes getPerson(String uid) {

        Map<String, List<Object>> attributes = new HashMap<String, List<Object>>();
        attributes.put("username",Collections.singletonList((Object) "yuxuan"));
        attributes.put("password", Collections.singletonList((Object) "email"));
        attributes.put("email",Collections.singletonList((Object) "mobile"));
        attributes.put("userid",Collections.singletonList((Object) "user_id"));

        return  new AttributeNamedPersonImpl(attributes);
    }
}
